//
// Created by wkm on 2023-12-05.
//

#include "rom.h"

void rom::prc_rom() {
    static const sc_uint<DATA_WIDTH> rom_data[WORD_DEPTH] =
            {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88};
    if (cen) {
        que = rom_data[addr.read()];
    } else {
        que = 0;
    }
}